<?php
  require_once('db_connection.php');
  $query = "SELECT * FROM `users`";
  $result  = mysql_query($query) or die(mysql_error());

  $selected_records = mysql_num_rows($result);
  echo "TOTAL : $selected_records \n\n";

  while($ans = mysql_fetch_assoc($result)){
    print_r($ans);
  }
